package main

import (
	"perfect-vue-admin/core"
	"perfect-vue-admin/global"
	"perfect-vue-admin/initialize"
)


// @title Swagger Example API
// @version 0.0.1
// @description This is a sample Server pets
// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name x-token
// @BasePath /
func main() {
	global.VP = core.Viper()
	global.LOG = core.Zap()
	global.DB = initialize.InitGormDB()

	// 程序结束前关闭数据库链接
	db, _ := global.DB.DB()
	defer db.Close()

	core.RunWindowsServer()
}
